package com.anjubao.parking.municipal.roadside.mapper;

import com.anjubao.parking.municipal.parkinglot.dto.VideoPileDto;
import com.anjubao.parking.municipal.roadside.model.DeviceVideoPile;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author anjubao
 */
@Mapper
public interface DeviceVideoPileMapper extends BaseMapper<DeviceVideoPile> {
    /**
     * 更新设备信息表
     *
     * @param videoPileDtoList
     * @return
     */
    void updateDeviceMessage(@Param("videoPileDtoList") List<VideoPileDto> videoPileDtoList);

    /**
     * 存在数据则新增，否则更新
     *
     * @param deviceVideoPile
     */
    void insertOrUpdate(DeviceVideoPile deviceVideoPile);
}
